package com.maven.logmanager.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 日记
 * @author Administrator
 *
 */
@Entity
@Table(name="t_finance_diary")
public class Diary {
	/**
	 * UUID主键
	 */
	@Id
	@Column(name="id")
	@GenericGenerator(name="idGenerator",strategy="uuid")
	@GeneratedValue(generator="idGenerator")
	private String id;
	/**
	 * 标题
	 */
	@Column(name="title")
	private String title;
	/**
	 * 内容
	 */
	@Column(name="content")
	private String content;
	/**
	 * 创建日期
	 */
	@Column(name="creation_date")
	private Date creationDate;
	/**
	 * 修改日期
	 */
	@Column(name="modified")
	private Date modified;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getCreationDate() {
		return creationDate;
	}
	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}
	public Date getModified() {
		return modified;
	}
	public void setModified(Date modified) {
		this.modified = modified;
	}
}
